﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using SocialFront.Providers.Image;

namespace SocialFront.Web.usercontrols.Gallery
{
    public partial class HomeImageList : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            List<Entities.Image> images = ImageProvider.Provider.GetAllImages(5, b => b.CreatedDate);
            imageList.DataSource = images;
            imageList.DataBind();
        }
    }
}